package com.bw.service;

import com.bw.bean.Car;
import com.bw.dao.CarDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService{
    @Autowired
    CarDao carDao;

    @Override
    public List<Car> getList(String name, String carno) {
        return carDao.getList(name,carno);
    }

    @Override
    public int add(String name, String idcard, String tel, String carno, String cname, int tid, int status, String appointdate) {
        return carDao.add(name,idcard,tel,carno,cname,tid,status,appointdate);
    }

    @Override
    public int delete(int[] ids) {
        return carDao.delete(ids);
    }


}
